﻿using AutofacDemo;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class AutofacExtension
    {
        public static IServiceCollection AddAutofacRegister(this IServiceCollection services)
        {
            //services.AddScoped<Person, Student>();
            services.AddScoped<IHelloService, HelloService>();
            //services.AddScoped<IHelloService, HelloWorldService>();
            return services;
        }
    }
}